.code32 
.text
.globl write_mem8, read_mem8
write_mem8: # void write_mem8(int addr, int data);
       #movl $0x20, %eax
       movl $0x23, %eax
       movw %ax, %gs
       movl 4(%esp), %edi
       movb 8(%esp), %al
       movb %al, %gs:(%edi)
     ret 
read_mem8: # void write_mem8(int addr);
       #movl $0x20, %eax
       movl $0x23, %eax
       movw %ax, %gs
       movl 4(%esp), %edi
       movl  $0, %eax
       movb %gs:(%edi), %al
     ret 
